package com.quanyan.assets.service.impl;

import com.quanyan.api.APIResponse;
import com.quanyan.api.enums.ApiResponseEnum;
import com.quanyan.assets.mapper.ETbUserEggsAccumulateHistoryMapper;
import com.quanyan.assets.response.RespUserAccumulateHistory;
import com.quanyan.assets.service.EggsHistoryService;
import com.quanyan.common.exception.BizException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wmb on 2016/6/28.
 */
@Service("eggsHistoryService")
public class EggsHistoryServiceImpl implements EggsHistoryService {
    @Autowired
    private ETbUserEggsAccumulateHistoryMapper eTbUserEggsAccumulateHistoryMapper;
    @Override
    public APIResponse<RespUserAccumulateHistory> historyDetailById(int uid, Integer id) {
        //验证用户
        RespUserAccumulateHistory respUserAccumulateHistory=eTbUserEggsAccumulateHistoryMapper.selectByIdAndUid(uid,id);
        return APIResponse.returnSuccess(respUserAccumulateHistory);
    }
}
